<div class="panel panel-default" ng-controller="BusRouteListCtrl">
	<div class="panel-heading">
		跨城巴士 / 线路档案
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.name" class="form-control" placeholder="线路名称">
				</div>
			</div>
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.fromAddr" class="form-control" placeholder="起点站名">
				</div>
			</div>
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.toAddr" class="form-control" placeholder="终点站名">
				</div>
			</div>
			<div class="form-group col-md-1">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:70px;">编号</th>
					<th style="width:80px;">线路名称</th>
					<th style="width:150px;">起点站名</th>
					<th style="width:150px;">终点站名</th>
					<th style="width:80px;">起点城市名</th>
					<th style="width:80px;">终点城市名</th>
					<th style="width:50px;">状态</th>
					<th style="width:80px;">
						<div class="list-icon">
							<a href tooltip="添加线路" has-authority="BUS_ROUTE_ADD">
								<i class="fa fa-plus" ng-click="insert()"></i>
							</a>
						</div>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="route in dataList">
					<td></td>
					<td>{{route.code}}</td>
					<td>{{route.name}}</td>
					<td>{{route.fromAddr}}</td>
					<td>{{route.toAddr}}</td>
					<td>{{route.fromCity}}</td>
					<td>{{route.toCity}}</td>
					<td>
					   <span ng-if="route.disabled">停用</span>
					   <span ng-if="!route.disabled">启用</span>
					</td>
					<td>
						<div class="list-icon">
							<a href tooltip="修改线路" has-authority="BUS_ROUTE_UPDATE">
								<i class="fa fa-pencil" ng-click="update(route)"></i>
							</a>
							<a href tooltip="站点排序" has-authority="BUS_ROUTE_UPDATE">
								<i class="fa fa-sort-alpha-asc" ng-click="asc(route)"></i>
							</a>
							<a href tooltip="删除线路"  has-authority="BUS_ROUTE_DEL">
								<i class="fa fa-times" ng-click="del('sm',route ,'delete')"></i>
							</a>
						</div>
					</td>
				</tr>
				<tr ng-show="dataList.length==0">
					<td colspan="9" style="text-align: center;">暂无线路信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>